import http from "@/utils/http/index";

// 活动说明
export const getHomeActivity = () => {
	return http<any>({
		method: "GET",
		url: `/yhj/api.index/getHomeActivity`
	});
};

// 添加车辆
export const addCar = (data : any) => {
	return http<any>({
		method: "POST",
		url: `/yhj/api.auth.vehicle/set`,
		data
	});
};
// 获取车辆列表
export const carList = (data ?: any) => {
	return http<any>({
		method: "GET",
		url: `/yhj/api.auth.vehicle/getList`,
		data
	});
};
// 获取优惠券列表
export const voucherList = (data ?: any) => {
	return http<any>({
		method: "POST",
		url: `/yhj/api.auth.user_coupon/getList`,
		data
	});
};
// 获取优惠券详情
export const voucherDetailApi = (data ?: any) => {
	return http<any>({
		method: "POST",
		url: `/yhj/api.auth.user_coupon/getDetail`,
		data
	});
};